package com.sanyang.pda.ui.manualoutbound;

import android.os.Bundle;
import android.view.View;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.sanyang.pda.adapter.ManualOutBoundStatisticsAdapter;
import com.sanyang.pda.contract.ManualOutBoundStatisticsContract;
import com.sanyang.pda.presenter.ManualOutBoundStatisticsPresenter;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import com.scwang.smartrefresh.layout.api.RefreshLayout;
import com.scwang.smartrefresh.layout.listener.OnLoadMoreListener;
import com.scwang.smartrefresh.layout.listener.OnRefreshListener;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;
import com.wangshen.base.ui.mvp.base.refresh.BaseRecyclerRefreshFragment;
import com.wangshen.base.ui.mvp.base.ui.BaseMvpFragment;
import com.wangshen.projectbase.R;

import java.util.ArrayList;

import butterknife.BindView;


public class ManualOutBoundStatisticsFragment extends BaseRecyclerRefreshFragment<ManualOutBoundStatisticsContract.View,ManualOutBoundStatisticsPresenter> implements ManualOutBoundStatisticsContract.View {


    private String deliveryNo;


    public ManualOutBoundStatisticsFragment(String deliveryNo) {
        this.deliveryNo = deliveryNo;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initLinsenterner() {

    }

    @Override
    public void getData() {
        getRefreshLayout().autoRefresh();
    }

    @Override
    public ManualOutBoundStatisticsPresenter getPresenter() {
        return new ManualOutBoundStatisticsPresenter(deliveryNo);
    }


    @Override
    public BaseAdapter createRecyclerAdapter() {
        return new ManualOutBoundStatisticsAdapter(R.layout.item_manual_outbound_statistics, new ArrayList<>());
    }
}

